package registry

import "context"

type Registrar interface {
    Register(ctx context.Context, service *ServiceInstance) error
    DeRegister(ctx context.Context, service *ServiceInstance) error
}

type ServiceInstance struct {
    ID string `json:"id"`
    Endpoints []string `json:"endpoints"`
}